package com.yy.train.ticket.train.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-10-07 09:09:39
 */
@Data
@TableName("tt_ticket")
public class TtTicketEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 车票id
	 */
	@TableId
	private Long ticketId;
	/**
	 * 运行日期id
	 */
	private Long runDateId;
	/**
	 * 车次id
	 */
	private Long numberId;
	/**
	 * 价格
	 */
	private BigDecimal price;
	/**
	 * 座位id
	 */
	private Long seatId;
	/**
	 * 是否出售（0 未出售，1 出售）
	 */
	private Integer sell;
	/**
	 * 路段id
	 */
	private Long sectionId;
	/**
	 * 开始站点
	 */
	private Long startStationId;
	/**
	 * 结束站点
	 */
	private Long endStationId;
	/**
	 * 每日运行车次座位id
	 */
	private Long runSeatId;
	/**
	 * 运行日期
	 */
	private LocalDate runDate;
	/**
	 * 运行时间
	 */
	private LocalTime runTime;

	@Version
	private Integer version;
}
